package com.ujiuye.service;

import com.ujiuye.dao.Homework01Dao;

import java.util.List;

public class Homework01Service {
    private Homework01Dao homework01Dao = new Homework01Dao();
    /**
     * 模糊搜索
     * @param search
     */
    public List<Object[]> dimQuery(String search) {
        return homework01Dao.dimQuery(search);
    }

    /**
     * 验证用户名唯一
     * @param uname
     * @return
     */
    public int unameIsUnique(String uname) {
        return homework01Dao.unameIsUnique(uname);
    }
}
